package cn.hd.service;

import cn.hd.entity.Bill;
import cn.hd.entity.User;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface UserService {
    public int addUser(User user);
    public int delUser(long id);
    public int updateUser(User user);

    public User selectUserByName(String name);
    public User selectUserById(long id);
    public User selectByeRid(long rid);
    public List<User> selectByRid(long rid);
    public int updateUserRole(long id,long rid);

    public PageInfo<User> selectAllUser(int pagenum, int pagesize, Map map);
    //zjc--开始
    public int updateUser2(User user);
    public int updateUserPassword(String password, long uid);

    public Map selectzj(int uid);

}
